//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "ChangePwdSmsModel.h"

@implementation ChangePwdSmsModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [ChangePwdSmsResponse class];
    }
    return self ;
}
- (void)changePwdWith:(NSString *)password smsCode:(NSString *)smsCode
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:password forKey:@"password"];
    [parameters setValue:smsCode forKey:@"smsCode"];
    [self postPath:@"xqn/app/applogin/passwdEditBySmscode" parameters:parameters];
}

@end
